package com.qf.j2105.service.impl;


import com.qf.j2105.mapper.CzAndErsMapper;
import com.qf.j2105.po.cz;
import com.qf.j2105.po.ers;
import com.qf.j2105.service.CzAndErs;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class czAndErsImpl implements CzAndErs {

    @Resource
    CzAndErsMapper czAndErsMapper;
    @Override
    public List<cz> findCzAll() {
        List<cz> all = czAndErsMapper.findCz();
        if (all != null){
            return all;
        }
        return null;
    }

    @Override
    public List<ers> findErsAll() {
        List<ers> all = czAndErsMapper.findErs();
        if (all != null){
            return all;
        }
        return null;
    }
}
